package com.java.java8.util.functioninterfacedemo;

/**
 * @author liyanhao
 * @Date 2023-02-25 12:45
 */
public interface FunctionInterFacedemo {
    public static void main(String[] args) {
        Converter<Integer, Double> converter = from -> Double.valueOf(from);
        System.out.println(converter.convert(123));
    }
}


@FunctionalInterface
interface Converter<F, T> {
    T convert(F from);
}
